package example;

public class Course {

    private Integer num;

    public String getCname() {
        if (num == null)
            return null;
        String cname = num.toString();
        return cname;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    private String cname;

    public void setNum(String num) {
        this.num = Integer.valueOf(num);
    }

    public void setCname(String cname) {
        this.cname = cname;
    }
}
